Vue.component('gongshi-details', {
    props: ['addform','link'],
    data: function () {
        return {
            addFormDisabled: true
        }
    },
    template: '<el-row type="flex" justify="center">\n' +
        '<el-col :span="15">\n' +
        '     <div style="margin-top: 10px;">\n' +
        '      <el-form :model="addform" :rules="rules" ref="addform">\n' +
        '       <el-row style="margin-bottom: 10px;">\n' +
        '        <el-col>\n' +
        '         <h4 style="margin-top: 10px;font-size: 30px;text-align: center;">{{ addform.title }}</h4>\n' +
        '        </el-col>\n' +
        '       </el-row>\n' +
        '       <el-row style="margin-bottom: 10px;padding-bottom: 10px;font-size: 24px;border-bottom: 1px solid #ddd;text-align: center;">\n' +
        '        <el-col :span="5">\n' +
        '         <span>{{addform.createUser}}</span>\n' +
        '        </el-col>\n' +
        '        <el-col span="6">\n' +
        '         <span>{{addform.releaseTime}}</span>\n' +
        '        </el-col>\n' +
        '        <el-col :span="6">\n' +
        '         <div style="float:right;">\n' +
        '          <span v-if="(addform.publicType == 0) ? true : false">服务门户</span>\n' +
        '          <span v-if="(addform.publicType == 1) ? true : false">工作门户</span>\n' +
        '          <span v-if="(addform.publicType == 2) ? true : false">服务门户和工作门户</span>\n' +
        '         </div>\n' +
        '        </el-col>\n' +
        '         <el-col :span="5">\n' +
        '             <div style="float:right;">\n' +
        '               <span v-if="(addform.isPublic == 0) ? true : false">公示通报</span>\n' +
        '               <span v-if="(addform.isPublic == 1) ? true : false">标准规范</span>\n' +
        '             </div>\n' +
        '         </el-col>\n' +
        '       </el-row>\n' +
        '       <el-row style="margin: 40px 2px;font-size: 22px;">\n' +
        '        <el-col>\n' +
        '         <span v-html="addform.publicityContent"></span>\n' +
        '        </el-col>\n' +
        '       </el-row>\n' +
        '       <el-row>\n' +
'                    <el-col :span="24">\n' +
'                        <el-form-item>\n' +
'                            <iframe width="100%" scrolling="no" style="height: 200px;border: none;" :src="link"></iframe>\n' +
'                        </el-form-item>\n' +
'                    </el-col>\n' +
'                </el-row>\n' +
        '      </el-form>\n' +
        '     </div>\n' +
        '  </el-col>\n' +
        '</el-row>',
})